<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>addPhoto</title>
	<link rel="stylesheet" type="text/css" href="skin/css/base.css">
</head>
  <body>
	<div align="center">
	<!-- 显示栏目信息   -->
<form action="photoPanelMan.do?method=addPhoto" enctype="multipart/form-data" method="post">
<table width="56%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
	<td height="24" colspan="2" background="skin/images/tbg.gif"><input type="hidden" name="photoID" value="" />添加图片</td>
</tr>

<tr height="32" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
	<td  align="right">序  号：</td>
	<td  align="left">
		<input type="text" name="photoSequence" style="width:40px" maxlength="3" value="" />
		<%
			String sequenceMsg=(String)session.getAttribute("photoSequenceError");
			if(sequenceMsg!=null&&(!sequenceMsg.equals(""))){
				out.write("<font color='red'>"+sequenceMsg+"</font>");
				session.setAttribute("photoSequenceError",null);
			}
		%>
	</td>
</tr>

<tr height="32" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
	<td width="20%" align="right">名  称：</td>
	<td width="80%" align="left">
		<input type="text" name="photoName" style="width:160px" maxlength="20" value="" />
		<%
			String nameMsg=(String)session.getAttribute("photoNameError");
			if(nameMsg!=null&&(!nameMsg.equals(""))){
				out.write("<font color='red'>"+nameMsg+"</font>");
				session.setAttribute("photoNameError",null);
			}
		%>
	</td>
</tr>

<tr height="32" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
	<td width="20%" align="right">文  件：</td>
	<td width="80%" align="left">     
     	<input type="file" name="photoFile" />
	</td>
</tr>

<tr height="32" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
	<td width="20%" align="right">超链接：</td>
	<td width="80%" align="left">
		<input type="text" name="photoLink" style="width:160px" maxlength="50" value="" />
	</td>
</tr>

<tr height="20" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
	<td  align="center" colspan="2">
		<input type="submit" value="保  存"  />&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="reset" value="取  消"  />
	</td>
</tr>
<tr height="20">
	<td  align="center" colspan="2">
		<%
			String news=(String)session.getAttribute("addPhotoNews");
			if(news!=null && (!news.equals("")) ){
				out.write("<font color='red'>"+news+"</font>");
			}
			session.setAttribute("addPhotoNews",null);
		 %>
		&nbsp;
	</td>
</tr>
</table>
</div>
</form>
  </body>
</html>
